{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "source": [
    "import tensorflow as tf"
   ],
   "outputs": [],
   "metadata": {}
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "source": [
    "seed = tf.random.normal([16,100]) # 固定种子"
   ],
   "outputs": [],
   "metadata": {}
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "source": [
    "tf.random.normal([2,10])"
   ],
   "outputs": [
    {
     "output_type": "execute_result",
     "data": {
      "text/plain": [
       "<tf.Tensor: shape=(2, 10), dtype=float32, numpy=\n",
       "array([[ 0.42746058, -2.0917835 , -1.4990456 , -0.6043715 , -0.9187163 ,\n",
       "         1.0585848 , -0.15142992,  1.0246527 ,  1.1086713 , -0.25971302],\n",
       "       [ 1.4544456 , -0.05889798, -0.20655021,  1.1986606 ,  1.548288  ,\n",
       "        -1.5017781 ,  0.38071328, -0.60146916, -0.07954643,  1.4106079 ]],\n",
       "      dtype=float32)>"
      ]
     },
     "metadata": {},
     "execution_count": 4
    }
   ],
   "metadata": {}
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "source": [
    "tf.random.normal([2,10])"
   ],
   "outputs": [
    {
     "output_type": "execute_result",
     "data": {
      "text/plain": [
       "<tf.Tensor: shape=(2, 10), dtype=float32, numpy=\n",
       "array([[ 1.0141628 ,  0.2044901 ,  0.8231937 , -0.38359118,  0.5047484 ,\n",
       "         0.71727407, -0.17566168, -0.21626452,  0.05607664,  1.467848  ],\n",
       "       [ 0.97511655,  0.01059452,  0.31930804, -0.6601867 , -0.5519524 ,\n",
       "         0.99256766, -0.6748401 , -0.78180254,  1.0381353 , -1.1558024 ]],\n",
       "      dtype=float32)>"
      ]
     },
     "metadata": {},
     "execution_count": 5
    }
   ],
   "metadata": {}
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "source": [],
   "outputs": [],
   "metadata": {}
  }
 ],
 "metadata": {
  "orig_nbformat": 4,
  "language_info": {
   "name": "python",
   "version": "3.8.10",
   "mimetype": "text/x-python",
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "pygments_lexer": "ipython3",
   "nbconvert_exporter": "python",
   "file_extension": ".py"
  },
  "kernelspec": {
   "name": "python3",
   "display_name": "Python 3.8.10 64-bit ('TF_env': venv)"
  },
  "interpreter": {
   "hash": "0329f0a5e6cabec3ab8e58c7c31f3faa9932aff3ca3e5d00a3e765bf08184e67"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}